FROM ezone-i.work/mirrors/centos-jdk11:7.9.1118

RUN mkdir /opt/java/ -p
ENV JAVA_HOME /opt/java/zulu11.60.19-ca-jdk11.0.17-linux_x64
ENV PATH /opt/java/zulu11.60.19-ca-jdk11.0.17-linux_x64/bin:$PATH

RUN mkdir /opt/demo/ -p
WORKDIR /opt/demo/

ADD ./target/javademo.jar /opt/demo
CMD ["java","-jar","./javademo.jar"]
